package com.company.cloud.work.modules.mgr.controller.req;

import java.util.List;
import java.util.Set;

import com.company.cloud.common.bean.BaseParam;

import com.company.cloud.common.constant.BaseConstant;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@Getter
@Setter
public class WorkTaskSaveParam extends BaseParam {

	@ApiModelProperty(value = "任务标题",required = true)
	@NotEmpty(message = "不能为空")
	private String title;

	@ApiModelProperty(value = "备注")
	private String remark;

	@ApiModelProperty(value = "执行人",required = true)
	@NotNull(message = "执行人不能为空")
	private Set<Integer> runUserIds;

	@ApiModelProperty(value = "完成时间(yyyy-MM-dd HH:mm:ss)",required = true)
	@NotEmpty(message = "完成时间不能为空")
	private String completeDate;

	@ApiModelProperty(value = "提醒[RemindDateEnum】")
	private List<String> remindTypes;

	@ApiModelProperty(value = "是否回执",required = true)
	@NotEmpty(message = "是否回执不能为空")
	private String isReceipt= BaseConstant.YNEnum.NO.getCode();

}
